//
//  FPProductModel.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/4/24.
//

#import <JSONModel/JSONModel.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger , FPProductPostType) {
    
    FPProductPostTypeAll,
    FPProductPostType1, //!< 金刚区
    FPProductPostType2, //!< 精选区
};

@interface FPProductModel : JSONModel

@property (nonatomic , strong) NSString *advertId;
@property (nonatomic , strong) NSString *annualInterestRate;
@property (nonatomic , strong) NSString *click;
@property (nonatomic , strong) NSString *companyId;
@property (nonatomic , strong) NSString *companyName;

@property (nonatomic , strong) NSString *customerId;
@property (nonatomic , strong) NSString *customerSourceType;
@property (nonatomic , strong) NSString *h5Url;
@property (nonatomic , strong) NSString *loanAmount;
@property (nonatomic , strong) NSString *productLogo;

@property (nonatomic , strong) NSString *productName;
@property (nonatomic , strong) NSString *sellingPoint;
@property (nonatomic , strong) NSString *sourceOfClue;
@property (nonatomic , strong) NSString *sourceType;
@property (nonatomic , strong) NSString *requestId;
@property (nonatomic , strong) NSString *price;


+ (void)getProductsWithType:(FPProductPostType)type success:(void (^)(NSInteger code , NSString *message , NSArray *list))success failure:(void (^)(NSError *error))failure;

+ (void)clickProduct:(FPProductModel *)model success:(void (^)(BOOL isSuccess , NSString *URLString))success failure:(void (^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
